package com.hmy.equipment.service.impl;

import com.hmy.equipment.domain.HmyWenshi;
import com.hmy.equipment.mapper.HmyWenshiMapper;
import com.hmy.equipment.service.HmyWenshiService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yyh
 * @date 2024/1/30 20:33
 * @description 环境智能监控终端（监控温度湿度）业务层实现类
 */
@Service
public class HmyWenshiServiceImpl implements HmyWenshiService {


    @Resource
    private HmyWenshiMapper wenshiMapper;
    @Override
    public List<HmyWenshi> selectWenshiList(HmyWenshi wenshi) {
        return wenshiMapper.selectWenshiList(wenshi);
    }

    @Override
    public Boolean addWenshi(HmyWenshi wenshi) {
        return wenshiMapper.addWenshi(wenshi) > 0;
    }

    @Override
    public Boolean editWenshi(HmyWenshi wenshi) {
        return wenshiMapper.editWenshi(wenshi) > 0;
    }

    @Override
    public Boolean delWenshi(long[] ids) {
        return wenshiMapper.delWenshi(ids) > 0;
    }

    @Override
    public HmyWenshi selectWenshiListById(Long id) {
        return wenshiMapper.selectWenshiListById(id);
    }
}
